import { get, post } from './index'
var url = 'https://api.sumaokeji.com/sumao/api/';
// var url = 'https://test.sumaokeji.com/sumao/api/';
export default {
  // wxSign: params => get('/sumaokeji/news/wechat/getSign', params), // 获取微信基本参数
  wxSign: params => get('https://api.sumaokeji.com/sumao/api/comment/getSign', params), // 获取微信基本参数
  // wxSign: params => get('comment/getSign', params), // 获取微信基本参数
  login: params => get(url + 'forum/login', params), //定义获取接口
  getMeetings: params => get(url + 'forum/getMeetings', params),//会议记录forum/getMeetings
  getChats: params => get(url + 'forum/getChats', params),//获取历史聊天消息forum/getChats
  sendChat: params => get(url + 'forum/sendChat', params),//发送消息forum/sendChat
  getMeetingById: params => get(url + 'forum/getMeetingById', params),//发送消息forum/sendChat
  checkUserId: params => get(url + 'forum/checkUserId', params),//检测id是否过期
  forumSendSms: params => get('https://test.sumaokeji.com/sumao/api/forum/sendSms', params),//发送验证码
  forumAddTime: params => get(url + 'forum/addTime', params),//学习进度+1
  //
}

// http://test.sumaokeji.com:18081
// http://test.sumaokeji.com:18081/sumao/api/forum/login?name=%E7%8E%8B%E6%99%BA&phone=19933203301&unit=%E6%B5%8B%E8%AF%95&signCode=123
